<template>
  <div>
    <h1>{{ str }}</h1>
    <button @click="reverse">点击</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      str: "坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强坚强",
    };
  },
  methods: {
    reverse() {
      this.str = this.str.split("").reverse().join("");
    },
  },
};
</script>

<style>
</style>